#!/bin/bash

QT_BIN=/home/raphserver/Qt5.3.1/5.3/gcc_64/bin
export QT_BIN
export PATH

${QT_BIN}/qmake -project
echo UI_DIR = uiTestSrc/ui >> uiTest.pro    
echo INCLUDEPATH += . ../tools >> uiTest.pro    
echo QT += widgets >> uiTest.pro    
echo CONFIG += qt >> uiTest.pro

${QT_BIN}/qmake ./uiTest.pro \
	-r \
	-spec linux-g++-64 \
	"LIBS += -L../result/debug64" \
	"LIBS += -ltools" \
	"DESTDIR = ../result/debug64/" \
	"CONFIG+=debug c++11" \
	"QMAKE_CXXFLAGS += -std=c++1y -pedantic-errors -Wall -Wextra -Wfatal-errors -Wwrite-strings -m64 -O0"
	
/usr/bin/make $1
